package com.hiyee.goods.controller;

import com.hiyee.api.controller.BaseController;
import com.hiyee.api.controller.goods.CategoryControllerApi;
import com.hiyee.goods.service.CategoryService;
import com.hiyee.response.ResponseJsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@RestController
public class CategoryController extends BaseController implements CategoryControllerApi {

    @Autowired
    private CategoryService categoryService;

    @Override
    public ResponseJsonResult getH5Tree() {
        Map<String, Object> category = categoryService.getH5Tree();
        return this.success(category);
    }
}
